Practical Automated Machine Learning on Azure by Deepak Mukunthu Parashar Shah Wee Hyong Tok

Practical Automated Machine Learning on Azure by Deepak Mukunthu Parashar Shah Wee Hyong Tok

Author:Deepak Mukunthu, Parashar Shah, Wee Hyong Tok
Language: eng
Format: mobi
Publisher: O'Reilly Media, Inc.
Published: 2019-09-27T00:00:00+00:00


import requests import json # Send a random row from the test set to score random_index = np.random.randint(0, len(X_test)-1) X_test_row = X_test[random_index : (random_index+1)] Y_test_row = y_test[random_index : (random_index+1)] input_data = "{"input_data": " + str(X_test_row.values.tolist()) + "}" headers = {'Content-Type':'application/json'} resp = requests.post(aci_service.scoring_uri, input_data, headers=headers) print("POST to url", aci_service.scoring_uri) print("input data:", input_data) print("label:", Y_test_row) print("prediction:", resp.text) print(resp.status_code) print(requests.status_codes._codes[resp.status_code])



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.